package com.baizhi.entity;

import java.util.Date;

public class Record {
    private int id;
    private int user_id;
    private int auction_id;
    private Date auction_time;
    private int auction_price;

    private User user;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getAuction_id() {
        return auction_id;
    }

    public void setAuction_id(int auction_id) {
        this.auction_id = auction_id;
    }

    public Date getAuction_time() {
        return auction_time;
    }

    public void setAuction_time(Date auction_time) {
        this.auction_time = auction_time;
    }

    public int getAuction_price() {
        return auction_price;
    }

    public void setAuction_price(int auction_price) {
        this.auction_price = auction_price;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Record() {
    }

    public Record(int id, int user_id, int auction_id, Date auction_time, int auction_price, User user) {
        this.id = id;
        this.user_id = user_id;
        this.auction_id = auction_id;
        this.auction_time = auction_time;
        this.auction_price = auction_price;
        this.user = user;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", auction_id=" + auction_id +
                ", auction_time=" + auction_time +
                ", auction_price=" + auction_price +
                ", user=" + user +
                '}';
    }
}
